<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定位</title>
    <style>
        .box1{
            background-color: rgb(255, 187, 127);
            height: 300px;
        }
        .box-normal{
            background-color: aqua;
            width: 100px;
            height: 100px;
        }
        .box-relative{
            height: 100px;
            width: 100px;
            background-color: purple;
            position: relative;
            left: 120px;
            top: 40px;
        }
        .box2{
            height: 300px;
            background-color: brown;
        }
        .box-normal{
            width: 100px;
            height: 100px;
            background-color: aquamarine;
        }
        .box-absolute{
            width: 100px;
            height: 100px;
            background: blueviolet;
            position: absolute;
            left: 120px;
            top: 40px;
        }
        .box3{
            height: 350px;
            background-color: coral;
        }
        .box-normal{
            width: 100px;
            height: 100px;
            background-color: darkslategray;
        }
        .box-fixed{
            background-color: chartreuse;
            width: 100px;
            height: 100px;
            position: fixed;
            right: 100px;
            bottom: 200px;
        }
    </style>
</head>
<body>
    <div class="box1">
        <div class="box-normal"></div>
        <div class="box-relative"></div>
        <div class="box-normal"></div>
    </div>
    <div class="box2">
        <div class="box-normal"></div>
        <div class="box-absolute"></div>
        <div class="box-normal"></div>
    <div class="box3">
        <div class="box-normal"></div>
        <div class="box-fixed"></div>
        <div class="box-normal"></div>
    </div>
</body>
</html>